<div class="layui-row">
    <ul class="layui-nav layui-bg-green" style="z-index:999;">
        <li class="layui-nav-item">
            <a href="/admin"><i class="layui-icon layui-icon-home"></i></a>
        </li>
        {% for menu in menus %}

        <!-- 导航栏选中样式: .layui-this-->
        {% if menu['focus'] %}
        <li class="layui-nav-item layui-nav-child-l layui-this">
        {% else %}
        <li class="layui-nav-item layui-nav-child-l">
        {% endif %}
            {% if menu['has_child'] %}
            <a href="javascript:;">{{ menu['title'] }}</a>
            <dl class="layui-nav-child" style="z-index: 999;"> <!-- 二级菜单 -->
                {% for child_menu in menu['child_menus'] %}
                <dd><a href="/{{ child_menu['uri'] }}">{{ child_menu['title'] }}</a></dd>
                {% endfor %}
            </dl>
            {% endif %}
        </li>
        {% endfor %}
        <li class="layui-nav-item">
            <a href="javascript:;">{{ session().get('admin_user')['account'] }}</a>
            <dl class="layui-nav-child layui-nav-child-l" style="z-index: 999;"> <!-- 二级菜单 -->
                <dd><a href="/admin/user/edit2">编辑资料</a></dd>
                <dd><a href="/admin/user/logout">登出</a></dd>
            </dl>
        </li>
    </ul>
</div>